<?php

declare(strict_types=1);

namespace App\Constants\Admin;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

#[Constants]
class AdminCode extends AbstractConstants
{
    /**
     * @Message("model.admin.status.normal")
     */
    public const STATUS_NORMAL = 1;

    /**
     * @Message("model.admin.status.enabled")
     */
    public const STATUS_ENABLED = 2;

    /**
     * @Message("model.admin.status.forbidden")
     */
    public const STATUS_FORBIDDEN = 3;

    /**
     * 状态
     * @var int[]
     */
    public static $statusMap = [
        self::STATUS_NORMAL,
        self::STATUS_ENABLED,
        self::STATUS_FORBIDDEN
    ];
}
